import {setConfig} from 'react-hot-loader';
import {hot} from 'react-hot-loader/root';

import {ConfigProvider} from 'antd';
import zhCN from 'antd/es/locale/zh_CN';

import '~/css/App';
import Routes from './Routes';

setConfig({showReactDomPatchNotification: false});

function App() {
    return (
        <ConfigProvider locale={zhCN}>
            <Routes />
        </ConfigProvider>
    );
}

export default hot(App);
